﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace BouncingPlane
{
	public partial class MenuBar : UserControl
	{
		public MenuBar()
		{
			// Required to initialize variables
			InitializeComponent();
		}

		private void Button_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
		{
			// TODO: Add event handler implementation here.
			Button button =(sender as Button);
			button.Opacity = 1;
		
		}

		private void Button_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
		{
			// TODO: Add event handler implementation here.
		    Button button =(sender as Button);
			button.Opacity = 0.5;
		
		}

		private void FullScreen_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
		{
			// TODO: Add event handler implementation here.
			   Application.Current.Host.Content.IsFullScreen = !Application.Current.Host.Content.IsFullScreen;
     
			
		}
	}
}